package com.lemox.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport
{
	private String user_id;
	private String passwd;

	public String getUser_id()
	{
		return user_id;
	}

	public void setUser_id(String user_id)
	{
		this.user_id = user_id;
	}

	public String getPasswd()
	{
		return passwd;
	}

	public void setPasswd(String passwd)
	{
		this.passwd = passwd;
	}

	public String login()
	{
		System.out.println("user_id = " + this.user_id);
		System.out.println("passwd  = " + this.passwd);

		if ("".equals(this.user_id) || "".equals(this.passwd))
		{
			return Action.INPUT;
		}
		else
		{
			return Action.SUCCESS;
		}
	}

}
